﻿using System;
using System.Collections.Generic;

namespace BenCaoXuan.Infrastructure.EFCore.MySql;

/// <summary>
/// 部门表
/// </summary>
public partial class SysDepartment
{
    /// <summary>
    /// 部门ID，主键
    /// </summary>
    public string DId { get; set; } = null!;

    /// <summary>
    /// 部门名称
    /// </summary>
    public string? DName { get; set; }

    /// <summary>
    /// 父部门ID，用于构建部门层级
    /// </summary>
    public string? DParentId { get; set; }

    /// <summary>
    /// 父级等级(高级,中级,低级)
    /// </summary>
    public string? DLv { get; set; }

    /// <summary>
    /// 部门图标
    /// </summary>
    public string? DIcon { get; set; }

    /// <summary>
    /// 部门状态：1-禁用，0-启用
    /// </summary>
    public int? DIsBan { get; set; }

    /// <summary>
    /// 部门备注信息
    /// </summary>
    public string? DRemark { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? DCreateTime { get; set; }
}
